package com.scsj.supermarket.adapter;

import android.app.Activity;
import android.support.annotation.Nullable;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scsj.supermarket.R;
import com.scsj.supermarket.bean.MineBean;


import java.util.List;

/**
 * 我的
 */

public class MineAdapter extends BaseQuickAdapter<MineBean,BaseViewHolder> {

    public MineAdapter(List data) {
        super(R.layout.item_mine_myorder_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MineBean item) {
        helper.setText(R.id.mine_myorder_myorder_tv,item.getName());
        Glide.with(mContext).load(item.getImageview()).into((ImageView) helper.getView(R.id.mine_myorder_myorder_iv));
    }
}
